class GuiaController < ApplicationController
  def index
    @guias = Guia.paginate :page=> params[:page], :per_page => DEFAULT_PER_PAGE, :order => 'fecha_envio'
  end

  def new
    @guia = Guia.new
  end

  def create
    @guia = Guia.new(@params['guia'])
    if @guia.save
      redirect_to :action => 'list'
    else
      render_action = 'new'
    end
  end

  def list
    @guias = Guia.find_all
  end
end
